home *** CD-ROM | disk | FTP | other *** search
/ Imekura ROM / Imekura ROM.iso / mac / Mac / SINDAN.DIR / 00046.ls < prev    next >
Encoding:
Text File  |  1995-07-17  |  8.3 KB  |  256 lines

  1. on startMovie
  2.   global gcount, ghcount, ghentaicount, groomcntlist
  3.   set gcount to 0
  4.   set ghcount to 0
  5.   set ghentaicount to 0
  6.   set groomcntlist to [1, 0, 0, 0, 1, 0, 2]
  7. end
  8.  
  9. on quizusel
  10.   global gquizulist
  11.   set gquizulist to []
  12.   set quizulist to [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30]
  13.   repeat with i = 1 to 10
  14.     set listcount to count(quizulist)
  15.     set randno to random(listcount)
  16.     set quizuno to getAt(quizulist, randno)
  17.     append(gquizulist, quizuno)
  18.     deleteAt(quizulist, randno)
  19.   end repeat
  20. end
  21.  
  22. on textset
  23.   global gquizulist, gcount
  24.   set workno to getAt(gquizulist, gcount + 1)
  25.   pictset(7, "Q" & workno, 7, 36, 185, 270)
  26. end
  27.  
  28. on textsound
  29.   global gquizulist, gcount
  30.   set workno to getAt(gquizulist, gcount + 1)
  31.   sound playFile 1, "@::AIF:Q" & workno
  32.   repeat while soundBusy(1)
  33.   end repeat
  34. end
  35.  
  36. on selyes
  37.   global gquizulist, gcount
  38.   set workno to getAt(gquizulist, gcount + 1)
  39.   if workno < 16 then
  40.     hproc("UP")
  41.   else
  42.     hentaiproc("UP")
  43.   end if
  44.   incount(workno)
  45.   set gcount to gcount + 1
  46. end
  47.  
  48. on selno
  49.   global gquizulist, gcount
  50.   set workno to getAt(gquizulist, gcount + 1)
  51.   if workno < 16 then
  52.     hproc("DOWN")
  53.   else
  54.     hentaiproc("DOWN")
  55.   end if
  56.   set gcount to gcount + 1
  57. end
  58.  
  59. on hproc ctype
  60.   global ghcount
  61.   if ctype = "UP" then
  62.     set ghcount to ghcount + 1
  63.     puppetSprite(6, 1)
  64.     set the castNum of sprite 6 to the number of cast "HUP"
  65.     updateStage()
  66.     puppetSprite(6, 0)
  67.   else
  68.     set ghcount to ghcount - 1
  69.     puppetSprite(6, 1)
  70.     set the castNum of sprite 6 to the number of cast "HDWN"
  71.     updateStage()
  72.     puppetSprite(6, 0)
  73.   end if
  74.   if ghcount = 0 then
  75.     puppetSprite(8, 0)
  76.   else
  77.     if ghcount < 0 then
  78.       puppetSprite(8, 1)
  79.       set the castNum of sprite 8 to the number of cast ("M" & abs(ghcount))
  80.     else
  81.       puppetSprite(8, 1)
  82.       set the castNum of sprite 8 to the number of cast ("P" & ghcount)
  83.     end if
  84.   end if
  85. end
  86.  
  87. on hentaiproc ctype
  88.   global ghentaicount
  89.   if ctype = "UP" then
  90.     set ghentaicount to ghentaicount + 1
  91.     puppetSprite(5, 1)
  92.     set the castNum of sprite 5 to the number of cast "TUP"
  93.     updateStage()
  94.     puppetSprite(5, 0)
  95.   else
  96.     set ghentaicount to ghentaicount - 1
  97.     puppetSprite(5, 1)
  98.     set the castNum of sprite 5 to the number of cast "TDWN"
  99.     updateStage()
  100.     puppetSprite(5, 0)
  101.   end if
  102.   if ghentaicount = 0 then
  103.     puppetSprite(9, 0)
  104.   else
  105.     if ghentaicount < 0 then
  106.       puppetSprite(9, 1)
  107.       set the castNum of sprite 9 to the number of cast ("M" & abs(ghentaicount))
  108.     else
  109.       puppetSprite(9, 1)
  110.       set the castNum of sprite 9 to the number of cast ("P" & ghentaicount)
  111.     end if
  112.   end if
  113. end
  114.  
  115. on nextproc
  116.   global gcount
  117.   if gcount < 10 then
  118.     go("Q" & gcount + 1)
  119.   else
  120.     sound stop 1
  121.     go(1, "RESLUT.DIR")
  122.   end if
  123. end
  124.  
  125. on incount quizno
  126.   if quizno = 1 then
  127.     set suplist to [1, 2]
  128.   else
  129.     if quizno = 2 then
  130.       set suplist to [1, 5, 6]
  131.     else
  132.       if quizno = 3 then
  133.         set suplist to [1, 2, 3, 6]
  134.       else
  135.         if quizno = 4 then
  136.           set suplist to [1]
  137.         else
  138.           if quizno = 5 then
  139.             set suplist to [2, 6]
  140.           else
  141.             if quizno = 6 then
  142.               set suplist to [5, 6, 7]
  143.             else
  144.               if quizno = 7 then
  145.                 set suplist to [2]
  146.               else
  147.                 if quizno = 8 then
  148.                   set suplist to [3, 4]
  149.                 else
  150.                   if quizno = 9 then
  151.                     set suplist to [2, 3, 6]
  152.                   else
  153.                     if quizno = 10 then
  154.                       set suplist to [5, 6]
  155.                     else
  156.                       if quizno = 11 then
  157.                         set suplist to [2, 6, 7]
  158.                       else
  159.                         if quizno = 12 then
  160.                           set suplist to [3, 4, 5, 6]
  161.                         else
  162.                           if quizno = 13 then
  163.                             set suplist to [2, 5]
  164.                           else
  165.                             if quizno = 14 then
  166.                               set suplist to [4, 5, 6, 7]
  167.                             else
  168.                               if quizno = 15 then
  169.                                 set suplist to [2, 3, 7]
  170.                               else
  171.                                 if quizno = 16 then
  172.                                   set suplist to [2, 3, 6, 7]
  173.                                 else
  174.                                   if quizno = 17 then
  175.                                     set suplist to [2, 3, 4]
  176.                                   else
  177.                                     if quizno = 18 then
  178.                                       set suplist to [4, 5, 6, 7]
  179.                                     else
  180.                                       if quizno = 19 then
  181.                                         set suplist to [1, 2]
  182.                                       else
  183.                                         if quizno = 20 then
  184.                                           set suplist to [5, 6]
  185.                                         else
  186.                                           if quizno = 21 then
  187.                                             set suplist to [1, 4]
  188.                                           else
  189.                                             if quizno = 22 then
  190.                                               set suplist to [2, 4, 6]
  191.                                             else
  192.                                               if quizno = 23 then
  193.                                                 set suplist to [3, 4, 7]
  194.                                               else
  195.                                                 if quizno = 24 then
  196.                                                   set suplist to [1, 3, 6, 7]
  197.                                                 else
  198.                                                   if quizno = 25 then
  199.                                                     set suplist to [1, 3, 5]
  200.                                                   else
  201.                                                     if quizno = 26 then
  202.                                                       set suplist to [3, 4, 5]
  203.                                                     else
  204.                                                       if quizno = 27 then
  205.                                                         set suplist to [1]
  206.                                                       else
  207.                                                         if quizno = 28 then
  208.                                                           set suplist to [1, 3, 5]
  209.                                                         else
  210.                                                           if quizno = 29 then
  211.                                                             set suplist to [1, 3]
  212.                                                           else
  213.                                                             if quizno = 30 then
  214.                                                               set suplist to [3, 4, 7]
  215.                                                             end if
  216.                                                           end if
  217.                                                         end if
  218.                                                       end if
  219.                                                     end if
  220.                                                   end if
  221.                                                 end if
  222.                                               end if
  223.                                             end if
  224.                                           end if
  225.                                         end if
  226.                                       end if
  227.                                     end if
  228.                                   end if
  229.                                 end if
  230.                               end if
  231.                             end if
  232.                           end if
  233.                         end if
  234.                       end if
  235.                     end if
  236.                   end if
  237.                 end if
  238.               end if
  239.             end if
  240.           end if
  241.         end if
  242.       end if
  243.     end if
  244.   end if
  245.   pointset(suplist)
  246. end
  247.  
  248. on pointset suplist
  249.   global groomcntlist
  250.   repeat with i = 1 to count(suplist)
  251.     set workno to getAt(groomcntlist, getAt(suplist, i))
  252.     setAt(groomcntlist, getAt(suplist, i), workno + 1)
  253.   end repeat
  254.   put groomcntlist
  255. end
  256.